virtual int step(int dt)
Parameter | Type | Description |
---|---|---|
dt | int | time interval in ms from last frame |
If it returns TRUE, the object is repositioned in bsp tree, returns FALSE if the object does not move.
This virtual function is used for updating the object. The object must do whatever it has to do for the elapsed time interval (move, rotate, attack, ... whatever).
Its default behaviour is to move like a particle if not implemented by a sub-class.